package com.gnerv.pabu.basic.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * <p>
 * 基础平台-用户表
 * </p>
 *
 * @author Gnerv LiGen
 * @since 2019-10-10
 */
@Data
@NoArgsConstructor
@ToString
@TableName("manage_user")
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 业务主键
     */
    @TableId(value = "uk_id", type = IdType.UUID)
    private String ukId;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 用户名
     */
    private String username;

    /**
     * 加密码
     */
    private String salt;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sort;

    public User(String account) {
        this.account = account;
    }
}
